package com.hnyd.streaming

import java.io.InputStream
import java.util.{Properties}


object ConfigUtils {


  def getValueConfig(key: String): String = {
    val stream: InputStream = Thread.currentThread().getContextClassLoader.getResourceAsStream("config.properties")
    val properties = new Properties()
    properties.load(stream)
    properties.getProperty(key)
  }

}
